package com.fakesmoker.aidawnda.scoring;

/**
 * 2024/11/9,
 */

import com.fakesmoker.aidawnda.model.entity.App;
import com.fakesmoker.aidawnda.model.entity.UserAnswer;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 评分策略模块
 * @author fakesmoker
 */
public interface ScoringStrategy {
    /**
     * 打分
     * @param choices
     * @param app
     * @return
     */
    UserAnswer doScore(List<String> choices, App app) throws InterruptedException;


    /**
     * 单机sync一致性评分
     * @param choices
     * @param app
     * @return
     * @throws InterruptedException
     */
    public UserAnswer doScoreBySingle(List<String> choices, App app) throws InterruptedException;
}
